package com.knowledge.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 申请添加好友表
 * </p>
 *
 * @author zzz
 * @since 2022-03-03
 */
@TableName("ms_friend_apply")
public class FriendApplyEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增长编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 申请人用户ID
     */
    @TableField("apply_user_id")
    private Long applyUserId;

    /**
     * 被加用户ID
     */
    @TableField("cover_user_id")
    private Long coverUserId;

    /**
     * 是否同意,0否，1是
     */
    @TableField("is_agree")
    private Integer isAgree;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Long getApplyUserId() {
        return applyUserId;
    }

    public void setApplyUserId(Long applyUserId) {
        this.applyUserId = applyUserId;
    }
    public Long getCoverUserId() {
        return coverUserId;
    }

    public void setCoverUserId(Long coverUserId) {
        this.coverUserId = coverUserId;
    }
    public Integer getIsAgree() {
        return isAgree;
    }

    public void setIsAgree(Integer isAgree) {
        this.isAgree = isAgree;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "FriendApplyEntity{" +
            "id=" + id +
            ", applyUserId=" + applyUserId +
            ", coverUserId=" + coverUserId +
            ", isAgree=" + isAgree +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
